<?php
	//Demande
	class Request extends Model{
		
		//Constructeur de demande
		public function __construct($idRequest,$idAdvert,$nbColocMin,$nbColocMax,$areaMin,$areaMax,$rentMin,$rentMax){
			parent::__construct('request');
			$this->idRequest = $idRequest;
			$this->idAdvert = $idAdvert;
			$this->nbColocMin = $nbColocMin;
			$this->nbColocMax = $nbColocMax;
			$this->areaMin = $areaMin;
			$this->areaMax = $areaMax;
			$this->rentMin = $rentMin;
			$this->rentMax = $rentMax;
		}
		
		//Suppression d'une demande
		public function delete(){
			parent::delete();
			RequestDB::deleteRequestTownByIdRequest($this->idRequest);
		}
		
	}
?>